package com.junzhiit.nengji.cms.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.bainaeco.framework.util.AssertUtil;
import com.junzhiit.nengji.cms.service.FullReductionGoodsService;
import com.junzhiit.nengji.cms.web.vo.ResultVO;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/full/reduction/goods")
public class FullReductionGoodsController extends BaseController {

	@Autowired
	FullReductionGoodsService fullReductionGoodsService;
	
	@ApiOperation(value = "根据id删除参加满减活动商品")
	@RequestMapping(method = RequestMethod.DELETE)
	public ResultVO deleteById(String fullReductionId) {
		AssertUtil.notBlank(fullReductionId, "fullReductionId is required.");
		return fullReductionGoodsService.deleteById(fullReductionId);
	}
}
